package com.xcc.eureka.feign.client.imp;

import com.xcc.bean.User;
import com.xcc.eureka.feign.client.BaseClient;
import org.springframework.stereotype.Component;

/**
 * @outhor Ren
 * @create 2019-03-02 17:22
 * 描述:
 */
// 添加接口实现类,用于 Hystrix 熔断, 当 feign 调用失败时,将会调用该实现类对应方法
@Component
public class BaseClientImp implements BaseClient {

    @Override
    public String test(String num) {
        return "熔断器触发";
    }

    @Override
    public User getObj(User user) {
        return null;
    }
}
